package com.atguigu.java1;

import java.io.Serializable;

/**
 * @author yihu
 * @create 2021-06-16 16:44
 * @email:1057202547@qq.com
 * @dec:
 */
public class Creature<T> implements Serializable {
    private char gender;
    public double weight;
    private T c;
    private void breath(){
        System.out.println("生物呼吸");
    }
    public void eat(){
        System.out.println("生物吃东西");
    }
    public T getC(){
        return  c;
    }
}
